package cz.zcu.fav.ratdroid.activity.calendar;

import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.caldroid.CaldroidFragment;
import com.caldroid.CaldroidGridAdapter;

import cz.zcu.fav.ratdroid.adapter.CaldroidRATAdapter;
import cz.zcu.fav.ratdroid.bean.Occupations;

public class CaldroidRATFragment extends CaldroidFragment
{

	private Occupations dates;
	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState)
	{
		View view = super.onCreateView(inflater, container, savedInstanceState);

		// workaround for keeping the RAT app style consistent - its not
		// possible to
		// override style in standard way - via XML conf
		view.setBackgroundColor(Color.BLACK);
		return view;
	}

	@Override
	public CaldroidGridAdapter getNewDatesGridAdapter()
	{
		return new CaldroidRATAdapter(getActivity(), month, year, disableDates,
				selectedDates, minDateTime, maxDateTime, dates);
	}

	public Occupations getDates()
	{
		return dates;
	}

	public void setDates(Occupations dates)
	{
		this.dates = dates;
	}

}
